#include "tcpClient.hpp"
using namespace Client;
#include <memory>
#include "log.hpp"
void my_Errno(char *n)
{
    printf("请正确输入#%s,port\n", n);
}

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        my_Errno(argv[0]);
        exit(1);
    }

    string ip = argv[1];
    uint16_t port = atoi(argv[2]);

    unique_ptr<tcpClient> ret(new tcpClient(ip, port));
    ret->initClient();
    ret->run();

    return 0;
}